package frog.lazy.framework.core.tools;

import cn.hutool.core.util.HexUtil;
import cn.hutool.core.util.IdUtil;

import java.math.BigInteger;

public class HexUtils extends HexUtil {

    public static Long decodeHEXLong(String hexs){
        return new BigInteger(hexs, 16).longValue();
    }

    public static void main(String args[]){
        String s = String.format("%s-%x", IdUtil.randomUUID(), 12);
        System.out.println(s);

        System.out.println(HexUtil.toHex(12));
    }

}
